package com.kpmg.datalake.common.enums;

/**
 * 成功失败
 *
 * @author Alex.zhao [alex.zhao@kpmg.com]
 * @since Created on azhao6 on 2018-06-27 12:34:38
 */
public enum SuccessAndFailEnum {
    /**
     * SUCCESS
     */
    SUCCESS(Boolean.TRUE, "SUCCESS", "成功"),
    /**
     * WARNING
     */
    WARNING(Boolean.TRUE, "WARNING", "警告"),
    /**
     * FAILURE
     */
    FAILURE(Boolean.FALSE, "FAILURE", "失败");
    private Boolean value;
    private String code;
    private String display;

    SuccessAndFailEnum(Boolean value, String code, String display) {
        this.value = value;
        this.code = code;
        this.display = display;
    }

    public Boolean getValue() {
        return value;
    }


    public String getCode() {
        return code;
    }


    public String getDisplay() {
        return display;
    }

}
